/////////////////////////////////////////////////////////////////////////////
// Name:        slposconfapp.cpp
// Purpose:     
// Author:      Herry Ayen Yang
// Modified by: 
// Created:     16/11/2008 00:08:32
// RCS-ID:      
// Copyright:   Copyright (c) 2000, 2008 Krida Software Division
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "slposconfapp.h"

////@begin XPM images
////@end XPM images


/*!
 * Application instance implementation
 */

////@begin implement app
IMPLEMENT_APP( SLposConfApp )
////@end implement app


/*!
 * SLposConfApp type definition
 */

IMPLEMENT_CLASS( SLposConfApp, wxApp )


/*!
 * SLposConfApp event table definition
 */

BEGIN_EVENT_TABLE( SLposConfApp, wxApp )

////@begin SLposConfApp event table entries
////@end SLposConfApp event table entries

END_EVENT_TABLE()


/*!
 * Constructor for SLposConfApp
 */

SLposConfApp::SLposConfApp()
{
    Init();
}


/*!
 * Member initialisation
 */

void SLposConfApp::Init()
{
////@begin SLposConfApp member initialisation
////@end SLposConfApp member initialisation
}

/*!
 * Initialisation for SLposConfApp
 */

bool SLposConfApp::OnInit()
{    
////@begin SLposConfApp initialisation
	// Remove the comment markers above and below this block
	// to make permanent changes to the code.

#if wxUSE_XPM
	wxImage::AddHandler(new wxXPMHandler);
#endif
#if wxUSE_LIBPNG
	wxImage::AddHandler(new wxPNGHandler);
#endif
#if wxUSE_LIBJPEG
	wxImage::AddHandler(new wxJPEGHandler);
#endif
#if wxUSE_GIF
	wxImage::AddHandler(new wxGIFHandler);
#endif
	SLposConfig* mainWindow = new SLposConfig(NULL);
	/* int returnValue = */ mainWindow->ShowModal();

	mainWindow->Destroy();
	// A modal dialog application should return false to terminate the app.
	return false;
////@end SLposConfApp initialisation

    return true;
}


/*!
 * Cleanup for SLposConfApp
 */

int SLposConfApp::OnExit()
{        
////@begin SLposConfApp cleanup
	return wxApp::OnExit();
////@end SLposConfApp cleanup
}

